@font-face {
    font-family: Ranga;
    src: url(../fonts/Gilroy-ExtraBold.ttf);
}

#brand {
    font-family: Ranga;
    color: #000000
}

/* Стили для навигационной панели */
.navbar {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    background-color: #e3f2fd !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    padding: 0;
}

.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.897);
    transform: translateY(-2px);
}

nav.navbar .navbar-nav > li.nav-item.active > a.nav-link#brand {
    background-color: rgb(207, 230, 255) !important;
    color: rgb(0, 0, 0) !important;
    font-weight: bold;
    box-shadow: 0 2px 8px rgb(207, 230, 255);
}

/* Стили для всей таблицы */
.table {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 11px;
    line-height: 1.1;
    width: 60%;
    min-width: auto;
    margin: 0 auto;
}

/* Стили для заголовка таблицы */
/* .my-custom-header th {
    background-color: #e3f2fd;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
} */

.my-custom-header th:first-child {
    border-top-left-radius: 15px;
}

.my-custom-header th:last-child {
    border-top-right-radius: 15px;
}

/* Стили для тела таблицы */
.table tbody tr {
    background-color: white;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.navbar-brand-img {
    height: 40px;
    width: auto;
    max-height: 100%;
    transition: transform 0.3s ease;
}

.navbar-brand-img:hover {
    transform: scale(1.05);
}

body {
    background: linear-gradient(135deg, #f4f6ff 0%, #c0d6ff 100%);
    min-height: 100vh;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .navbar {
        border-radius: 0 0 15px 15px;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-collapse {
        padding: 1rem 0;
    }
}

/* Фиксированный заголовок таблицы при прокрутке страницы */
.table thead {
    top: 0;
    z-index: 1000;
}

/* Усиливаем стили для фиксированного заголовка */
.my-custom-header th {
    top: 0;
    z-index: 1001;
    background-color: #e3f2fd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Увеличиваем z-index для навбара, чтобы он был выше заголовка таблицы */
.navbar {
    z-index: 1010;
}

/* Для мобильных устройств - уменьшаем top offset */
@media (max-width: 768px) {
    .table thead {
        top: 0;
    }
    
    .my-custom-header th {
        top: 0;
    }
}

.table-responsive {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow-x: auto;
}

.table th, .table td {
    padding: 4px 3px;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word; 
}

.table th {
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-info td {
    background-color: #ddfaff;
}

/* Добавьте в ваш CSS файл */
.dropdown-menu {
    background-color: #e3f2fd !important;
    border: none !important;
    border-radius: 15px !important; /* Добавляем скругленные углы */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; /* Тень как у навбара */
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    overflow: hidden;
}

.dropdown-menu .dropdown-item.active {
    background-color: rgb(207, 230, 255) !important;
    color: rgb(0, 0, 0) !important;
    font-weight: bold;
    box-shadow: 0 2px 8px rgb(207, 230, 255);
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.897) !important;
    color: #000000 !important;
    transform: translateY(-2px);
}